/**
 * Company : TIS.
 * Created By : Chatree Siangklom
 * Created On : Jul 26, 2013  4:24:06 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.interfaces.controller.demo.menu
 * File Name : MenuController.java
 * TODO
 */
package com.tis.interfaces.controller.demo.menu;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author chatree
 *
 */
@Controller
public class MenuController {

	private static final Logger log = LoggerFactory.getLogger(MenuController.class);
	
	@RequestMapping(value="/demo", method = RequestMethod.GET)
	public ModelAndView DemoMenuPage() {
		log.info("welcome to indexPage the same DemoMenuPage.");
		return new ModelAndView("/demohtml/index");
	}
	
	@RequestMapping(value="/demo/menu/index", method = RequestMethod.GET)
	public ModelAndView DemoMenuIndexPage() {
		log.info("welcome to indexPage the same DemoMenuIndexPage.");
		return new ModelAndView("/demohtml/demo/index");
	}
	
	@RequestMapping(value="/demo/menu/fgmenu", method = RequestMethod.GET)
	public ModelAndView DemoMenufgmenuPage() {
		log.info("welcome to indexPage the same DemoMenufgmenuPage.");
		return new ModelAndView("/demohtml/fgmenu/index");
	}
	
	@RequestMapping(value="/demo/menu/fgmenu/menuContent", method = RequestMethod.GET)
	public ModelAndView DemoMenufgmenuContentPage() {
		log.info("welcome to indexPage the same DemoMenufgmenuContentPage.");
		return new ModelAndView("/demohtml/fgmenu/menuContent");
	}
	
	@RequestMapping(value="/demo/menu/largedropdown", method = RequestMethod.GET)
	public ModelAndView DemoMenulargedropdownPage() {
		log.info("welcome to indexPage the same DemoMenufgmenuContentPage.");
		return new ModelAndView("/demohtml/largedropdown/index");
	}
	
	@RequestMapping(value="/demo/menu/dropdown", method = RequestMethod.GET)
	public ModelAndView DemoMenuDropDownPage() {
		log.info("welcome to indexPage the same DemoMenufgmenuContentPage.");
		return new ModelAndView("/demohtml/dropdown/simplehorizontal");
	}
	
	@RequestMapping(value="/demo/menu/dropdown1", method = RequestMethod.GET)
	public ModelAndView DemoMenuDropDown1Page() {
		log.info("welcome to indexPage the same DemoMenuDropDown1Page.");
		return new ModelAndView("/demohtml/dropdown/mtvcom");
	}
}
